cmake_minimum_required(VERSION 2.8)

include_directories( ${KDE4_INCLUDES} )

set( koceansaver_SRCS guidancesystem.cpp koceansetting.cpp ocean.cpp wavemap.cpp kocean.cpp koceansetup.cpp seacreature.cpp )

kde4_add_ui_files( koceansaver_SRCS koceansetup.ui )

kde4_add_executable( koceansaver.kss ${koceansaver_SRCS} )

target_link_libraries( koceansaver.kss ${KDE4_KIO_LIBS} ${KSCREENSAVER_LIBRARY} ${QT_QTOPENGL_LIBRARY} ${OPENGL_LIBRARIES} )

install( TARGETS koceansaver.kss ${INSTALL_TARGETS_DEFAULT_ARGS} )
install( FILES data/orca.png data/caust13.png data/caust29.png
data/spadefish.agl data/Caust13.png data/Caust29.png
data/spadefish.png data/caust14.png data/caust30.png
data/barracuda.agl data/Caust14.png data/Caust30.png
data/barracuda.png data/caust15.png data/caust31.png
data/orca.agl data/Caust15.png data/Caust31.png
data/caust00.png data/caust16.png data/csolscenicorel.png
data/Caust00.png data/Caust16.png data/Caust28.png
data/caust01.png data/caust17.png data/greatwhite.agl
data/Caust01.png data/Caust17.png data/greatwhite.png
data/caust02.png data/caust18.png data/mania-ray.png
data/Caust02.png data/Caust18.png data/mania-ray.xcf
data/caust03.png data/caust19.png data/Caust12.png
data/Caust03.png data/Caust19.png data/purple-tube.png
data/caust04.png data/caust20.png data/caust28.png
data/Caust04.png data/Caust20.png data/wood.png
data/caust05.png data/caust21.png data/remora.agl
data/Caust05.png data/Caust21.png data/remora.png
data/caust06.png data/caust22.png data/rock2.png
data/Caust06.png data/Caust22.png data/rock.png
data/caust07.png data/caust23.png data/sailfish.agl
data/Caust07.png data/Caust23.png data/sailfish.png
data/caust08.png data/caust24.png data/caust12.png
data/Caust08.png data/Caust24.png data/sand.png
data/caust09.png data/caust25.png data/graynurseshark.agl
data/Caust09.png data/Caust25.png data/graynurseshark.png
data/caust10.png data/caust26.png data/Caust27.png
data/Caust10.png data/Caust26.png data/wood2.png
data/caust11.png data/caust27.png data/stone_wall.png
data/Caust11.png data/tripletail.agl data/tripletail.png
DESTINATION ${DATA_INSTALL_DIR}/koceansaver/data )
install( FILES koceansaver.desktop DESTINATION ${SERVICES_INSTALL_DIR}/ScreenSavers )
install( FILES koceansaver.kss.1 DESTINATION ${MAN_INSTALL_DIR}/man1 )
